import  requests
url='https://www.kanunu8.com/'
headers={
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36'
}
response=requests.get(url=url,headers=headers)
# print(response.encoding)
# print(response.apparent_encoding)
# response.encoding='GB18030'
response.encoding=response.apparent_encoding
print(response.text)
